package com.wander.io;

import java.io.*;

public class BufferedInputStreamExample {
    public static void main(String[] args) {
        File file = new File("d:\\code\\hello.txt");
        try {
            FileInputStream fis = new FileInputStream(file);
            BufferedInputStream bis = new BufferedInputStream(fis);
            System.out.println(bis.read());
            System.out.println(bis.read());
        } catch (FileNotFoundException e) {
            throw new RuntimeException(e);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }

    }
}
